package com.zlzxm.shoesmarket.net.repository;

import com.zlzxm.shoesmarket.net.RetrofitClient;
import com.zlzxm.shoesmarket.net.api.RecruitApi;
import com.zlzxm.shoesmarket.net.request.RqReleaseRecruit;
import com.zlzxm.shoesmarket.net.respone.BaseResponse;
import com.zlzxm.shoesmarket.net.respone.RpRecruit;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;

/**
 * CREATE BY zlzxm ON 2021/5/11
 */
public class RecruitRepository {

    RecruitApi recruitApi = RetrofitClient.create(RecruitApi.class);

    public  Observable<BaseResponse<String>> releaseRecruit(RqReleaseRecruit releaseRecruit) {

        return recruitApi.releaseRecruit(releaseRecruit);
    }

    public  Observable<BaseResponse<String>> releaseDesc( ) {

        return recruitApi.recruitDesc();
    }


    public  Observable<BaseResponse<List<RpRecruit>>> recruitList( ) {

        return recruitApi.recruitList();
    }

}
